﻿using ED.Common.BaseModel;
using ED.IService;
using ED.IService.User;
using ED.Model.Request;
using ED.Model.Response;
using Microsoft.AspNetCore.Mvc;

namespace ED.Admin.Controllers
{
    /// <summary>
    /// 基础控制器
    /// </summary>
    public class SMSController : CommonController
    {
        private readonly IRolePermissionService rolePermissionService;
        private readonly ICityManageService cityManageService;
        private readonly IUserService userService;
        private readonly IMenuOperationService menuOperationService;
        /// <summary>
        /// 设置系统控制器
        /// </summary>
        /// <param name="userService"></param>
        /// <param name="menuOperationService"></param>
        /// <param name="rolePermissionService"></param>
        /// <param name="cityManageService"></param>
        public SMSController(IUserService userService, IMenuOperationService menuOperationService, IRolePermissionService rolePermissionService, ICityManageService cityManageService)
        {
            this.rolePermissionService = rolePermissionService;
            this.cityManageService = cityManageService;
            this.userService = userService;
            this.menuOperationService = menuOperationService;
        }

        /// <summary>
        /// GetCityPage
        /// </summary>
        /// <param name="req"></param>
        /// <returns></returns>
        [HttpGet]
        public ResponseOutput<PageOut<BaseCityRes>> GetCityPage([FromQuery]BaseCityReq req)
        {
           return ResponseOutput.Ok(cityManageService.Page(req));
        }
    }
}
